<template>
  <div class="register">
    我是注册组件
    <button @click="sendFlag">切换到登录</button>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const emits = defineEmits(['switchLogin'])
const flag = ref(true)
const sendFlag = () => {
  emits('switchLogin', flag.value)
}
</script>
<style scoped lang="scss"></style>
